/**
 * ...
 * @author ytl
 */
class game.objects.Bugs
{
	
	public function Bugs extends MovieClip() 
	{
		private var speedX:int;
		private var speedY:int;
		private var foodNumber:int;
		private var locationType:int;
		
		private var first:int = 540;
		private var second:int = 337;
		private var third:int = 156;
		private var starX:int = 1015;
		private var stopLocationX:int = 150;
		
		private var speedScale:int = 4;
		private var moveAble:Boolean = true;
		
		
		public function setLocation(location:int):void {
			locationType = location;
			switch(locationType) {
				case 0:
					locationX = 1070;
					locationY = 540;
					break;
				case 1:
					locationX = 1070;
					locationY = 337;
					break;
				case 2:
					locationX = 1070;
					locationY = 156;
					break;
				default:
					break;
			}
		}
		

		public function move():void {
			locationX = locationX + speed;
		}
		
		public function reducePoint( point:int ):int {
			return point - reducePoint;
		}
		
	}
	
}